package com.example.demo.bean;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * <h3>springboot-elasticsearch</h3>
 * <p></p>
 *
 * @author : 你的名字
 * @date : 2020-05-28 08:16
 **/
@Data
@Accessors(chain = true)
@Document(indexName = "elastic", type = "book") //指定索引名字，类型
public class Book {
    private Integer id;
    private String bookName;
    private String author;
}
